TestEventService   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 9
dl 0
loc 11
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A publishEvent 0 3 1
1
import { Inject, Injectable } from '@nestjs/common';
2
import { IEventBus } from '@nestjs/cqrs';
3
import { TRANSPORT_EVENT_BUS_SERVICE } from '../../../../src/constants/transport.event-bus.constants';
4
5
@Injectable()
6
export class TestEventService {
7
    constructor(
8
        @Inject(TRANSPORT_EVENT_BUS_SERVICE) private readonly eventBus: IEventBus
9
    ) {
10
        // TODO
11
    }
12
13
    publishEvent(event: any) {
14
        this.eventBus.publish(event);
15
    }
16
}
17